﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StructureMap.Configuration.DSL;
using Randata.DataResolvers;
using Randata.DataResolvers.Implementation;

namespace Randata.IoC
{
    public class ResolversRegister : Registry
    {
        public ResolversRegister()
        {
            base.For<DataResolver<int>>().Use<Int32DataResolver>();

            base.For<DataResolver<String>>().Use<StringDataResolver>();

            base.For<DataResolver<bool>>().Use<BoolDataResolver>();

            base.For<DataResolver<double>>().Use<DoubleDataResolver>();

            base.For<DataResolver<Guid>>().Use<GuidDataResolver>();

            base.For<DataResolver<DateTime>>().Use<DateTimeDataResolver>();

            //base.For(typeof(DataResolver<>)).Use(typeof(CustomObjectDataResolver<>));
        }
    }
}
